import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './auth/auth.module';
import { ConfigModule } from '@nestjs/config';
import { PostsModule } from './posts/posts.module';
import { OssModule } from './oss/oss.module';
import { GalleryModule } from './gallery/gallery.module';

@Module({
  imports: [ConfigModule.forRoot({
    // envFilePath:'.env', 
    isGlobal: true,
  }), AuthModule, PostsModule, GalleryModule, OssModule,],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule { }
